var request = new XMLHttpRequest();

function init()
{	
	var loginButton = window.document.getElementsByClassName("Button")[0];
	loginButton.addEventListener("click", login, true);
	
	var textBox = window.document.getElementById("inputname");
	textBox.addEventListener("keydown",  function(e){
		if(e.keyCode == 13)
			{
			login();
			}}, true);
}


